# !/usr/bin/env python
# -*-coding:utf-8 -*-

"""
# File       : alarm_schema.py
# Time       ：2023/11/2 10:31
# Author     ：YangYong
# version    ：python 3.10
# Description：日志序列化类
"""
from marshmallow import fields
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema

from apis.notice.model.logger_info import LoggerInfo


class LoggerInfoSchema(SQLAlchemyAutoSchema):
    insert_time = fields.DateTime(format="%Y-%m-%d %H:%M:%S")
    update_time = fields.DateTime(format="%Y-%m-%d %H:%M:%S")

    class Meta:
        model = LoggerInfo
